﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： ErrorLogEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-07-30
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace YouWei.Infrastructure.Entity
{
	/// <summary>
	///异常日志数据实体  
	/// </summary>
    [PrimaryKey("ErrorLogID")]
	public class ErrorLog
	{
		///<summary>
		///异常日志
		///</summary>
		public ErrorLog()
		{
		}	
    
		
		///<summary>
		///主键
		///</summary>
        [Column("ErrorLogID","主键")]
        public long ErrorLogID { get; set; }

		///<summary>
		///请求方法(1： GET，2：POST)
		///</summary>
        [Column("RequestMethod","请求方法(1： GET，2：POST)")]
        public string RequestMethod { get; set; }

		///<summary>
		///请求地址
		///</summary>
        [Column("RequestUrl","请求地址")]
        public string RequestUrl { get; set; }

		///<summary>
		///APP版本
		///</summary>
        [Column("APPVersion","APP版本")]
        public string APPVersion { get; set; }

		///<summary>
		///登陆平台（1：IOS,2：Android,3：OP）
		///</summary>
        [Column("Platform","登陆平台（1：IOS,2：Android,3：OP）")]
        public int Platform { get; set; }

		///<summary>
		///平台版本(IOS 4.0)
		///</summary>
        [Column("PlatformVersion","平台版本(IOS 4.0)")]
        public string PlatformVersion { get; set; }

		///<summary>
		///用户ID
		///</summary>
        [Column("UserID","用户ID")]
        public long UserID { get; set; }

		///<summary>
		///提交内容(POST)
		///</summary>
        [Column("PostData","提交内容(POST)")]
        public string PostData { get; set; }

		///<summary>
		///浏览器信息
		///</summary>
        [Column("UA","浏览器信息")]
        public string UA { get; set; }

		///<summary>
		///厂商(三星、小米)
		///</summary>
        [Column("Vendor","厂商(三星、小米)")]
        public string Vendor { get; set; }

		///<summary>
		///设备的型号
		///</summary>
        [Column("Model","设备的型号")]
        public string Model { get; set; }

		///<summary>
		///IOS设备令牌
		///</summary>
        [Column("Token","IOS设备令牌")]
        public string Token { get; set; }

		///<summary>
		///安卓服务令牌
		///</summary>
        [Column("ClientId","安卓服务令牌")]
        public string ClientId { get; set; }

		///<summary>
		///手机号
		///</summary>
        [Column("Moble","手机号")]
        public string Moble { get; set; }

		///<summary>
		///国际标识码
		///</summary>
        [Column("Imei","国际标识码")]
        public string Imei { get; set; }

		///<summary>
		///唯一标识符
		///</summary>
        [Column("Uuid","唯一标识符")]
        public string Uuid { get; set; }

		///<summary>
		///请求时间
		///</summary>
        [Column("CreatedDate","请求时间")]
        public DateTime CreatedDate { get; set; }

		///<summary>
		///IP地址
		///</summary>
        [Column("ClientIP","IP地址")]
        public string ClientIP { get; set; }

		///<summary>
		///错误信息
		///</summary>
        [Column("ErrorMessage","错误信息")]
        public string ErrorMessage { get; set; }

		///<summary>
		///错误来源
		///</summary>
        [Column("ErrorSource","错误来源")]
        public string ErrorSource { get; set; }

		///<summary>
		///错误跟踪
		///</summary>
        [Column("ErrorTrace","错误跟踪")]
        public string ErrorTrace { get; set; }

	}
}